﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;
namespace Paros.Win
{
    public partial class EditorForm : DockContent
    {
        public EditorForm()
        {
            InitializeComponent();
        }

        public HTMLEditor.Editor Editor { 
            get{
                return editor1;
            } 
        }

        private void editor1_OnChanged(object sender, EventArgs e)
        {
            ((mainForm)this.TopLevelControl).OnDocumentChanged();
        }

        private void editor1_OnDocumentSaving(object sender, EventArgs e)
        {
            ((mainForm)this.TopLevelControl).OnDocumentSaving();
        }
    }
}
